<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Resource Management Tool 2014</title>
	<link href="style/default.css" rel="stylesheet" type="text/css"
		media="all" />
	<link href="style/login.css" rel="stylesheet" type="text/css"
		media="all" />
	<link href="style/button.css" rel="stylesheet" type="text/css"
		media="all" />
	<link href="style/validation.css" rel="stylesheet" type="text/css"
		media="all" />
</h:head>
<h:body>
<h:messages class="myError"></h:messages>
	<h:form>
		<h:panelGrid class="panelGridError"
			rendered="#{userLoginBean.erorr != null}"
			value="#{userLoginBean.erorr}">
			<h:outputText value="#{userLoginBean.erorr}" />
		</h:panelGrid>
		<div id="leftcolumn">
			<img src="images/rmt_logo.jpg" width="700" height="250" />
		</div>
		<div id="rightcolumn">

			<p class="sameline">
				<label class="sameline" for="login"><h:outputText value="#{msg.Login_username}"/></label>
				<h:outputText value="#{userDTO.username}" class="sameline"
					name="User"></h:outputText>
			</p>

			<p class="sameline">
				<label for="password"><h:outputText value="#{msg.Login_password}"/></label>
				<h:inputSecret value="#{userLoginBean.passwordModify}"
					class="sameline" name="Pass">
					<f:validator validatorId="validators.PasswordValidator" />
				</h:inputSecret>
			</p>

			<p class="sameline">
				<label for="password"><h:outputText value="#{msg.Login_retyped}"/></label>
				<h:inputSecret value="#{userLoginBean.retypedPassword}"
					class="sameline" name="RePass">
					<f:validator validatorId="validators.PasswordValidator" />
				</h:inputSecret>
			</p>

			<p class="sameline">
				<h:commandButton class="button" id="submit" value="Ok"
					action="#{userLoginBean.changePassword}"></h:commandButton>
			</p>
		</div>
	</h:form>
</h:body>
</html>
